package day08_Extends.demo12_extends;

public class Teacher extends Person {
    public int money;

    @Override
    public void study() {
        System.out.println("学习新的知识");
    }

    public Teacher(int money) {
        this.money = money;
    }

    public Teacher(String name, int age, int money) {
        super(name, age);
        this.money = money;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
}
